﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CommHelper;

namespace Domain.Repository
{
    public class OperModelRepository : Repository.RepositoryBase<Domain.Entities.OperModel>, IOperModelRepository
    {
        private Persistence.IDao.IOperModelDao _OperModelDao { get; set; }

        public bool SaveOperModel(Domain.Entities.OperModel entity)
        {
            var target = new Persistence.Entities.OperModel();
            entity.CopyTo(target);
            return _OperModelDao.SaveOperModel(target);
        }
    }
}